//
//  Macro.h
//  IntegralDog
//
//  相关宏定义，url等
//  Created by wmm on 16/1/21.
//  Copyright © 2016年 hanen. All rights reserved.
//

#ifndef Macro_h
#define Macro_h

//获得当前屏幕宽高点数（非像素）
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define kScreenWidth  [UIScreen mainScreen].bounds.size.width

//橘黄色
#define mainOrangeColor [UIColor colorWithRed:255.0f/255.0f green:181.0f/255.0f blue:51.0f/255.0f alpha:1]
//浅橘黄色
#define lightOrangeColor [UIColor colorWithRed:249.0f/255.0f green:144.0f/255.0f blue:37.0f/255.0f alpha:1]
//黄色#f8af3f
#define yellowBgColor [UIColor colorWithRed:248.0f/255.0f green:175.0f/255.0f blue:63.0f/255.0f alpha:1]

//标题字体颜色
#define titleBlackColor [UIColor colorWithRed:33.0f/255.0f green:33.0f/255.0f blue:33.0f/255.0f alpha:1]
//偏黑色字体颜色
#define fontBlackColor [UIColor colorWithRed:30.0f/255.0f green:30.0f/255.0f blue:30.0f/255.0f alpha:1]
//深灰色字体颜色
#define fontDarkGrayColor [UIColor colorWithRed:81.0f/255.0f green:81.0f/255.0f blue:81.0f/255.0f alpha:1]
//深灰色字体颜色2
#define fontGrayColor [UIColor colorWithRed:78.0f/255.0f green:76.0f/255.0f blue:74.0f/255.0f alpha:1]
//浅灰字体颜色
#define fontLightGrayColor [UIColor colorWithRed:135.0f/255.0f green:135.0f/255.0f blue:135.0f/255.0f alpha:1]
//浅灰字体颜色2
#define fontLightGrayColor2 [UIColor colorWithRed:187.0f/255.0f green:187.0f/255.0f blue:186.0f/255.0f alpha:1]

//浅灰色背景
#define bGGrayColor [UIColor colorWithRed:240.0f/255.0f green:239.0f/255.0f blue:237.0f/255.0f alpha:1]

//表格线浅灰
#define cellGrayColor [UIColor colorWithRed:230.0f/255.0f green:231.0f/255.0f blue:235.0f/255.0f alpha:1]
//菜单灰色分割线
#define menuGrayColor [UIColor colorWithRed:179.0f/255.0f green:178.0f/255.0f blue:176.0f/255.0f alpha:1]
//菜单灰色背景
#define menuBGGrayColor [UIColor colorWithRed:250.0f/255.0f green:250.0f/255.0f blue:250.0f/255.0f alpha:1]

//紫色
#define purpleColor [UIColor colorWithRed:61.0f/255.0f green:39.0f/255.0f blue:84.0f/255.0f alpha:1]


#import "Toast+UIView.h"
#import "JudgeNumber.h"
#import "UIView+Extension.h"
#import "UIView+ViewFrame.h"
#import "AFNetworking.h"
#import "DataTool.h"
#import "DateTool.h"
#import "AppDelegate.h"
#import "UIImageView+WebCache.h"
#import "UIButton+WebCache.h"


#define HEAD_URL @"http://115.28.176.86/"

#define IMAGEURL @"http://115.28.176.86/integration_dog"//拼接图片地址
//登录注册
#define GET_IMGCODE_URL @"" HEAD_URL"integration_dog/app/getImgCode"
#define GET_PHONECODE_URL @"" HEAD_URL"integration_dog/app/getPhoneCode"
#define REGISTER_URL @"" HEAD_URL"integration_dog/app/register"
#define LOGIN_URL @"" HEAD_URL"integration_dog/app/login"

#define FIND_PASS_URL @"" HEAD_URL"integration_dog/app/findPass"
#define MODIFY_PASS_URL @"" HEAD_URL"integration_dog/app/modifyPassword"

//积分商城
#define INTEGRATION_STORE_URL @"" HEAD_URL"integration_dog/app/getGoodsList"
//兑换商品
#define EXCHANGE_GOODS_URL @"" HEAD_URL"integration_dog/app/exchangeGoods"
//兑换记录
#define EXCHANGE_RECORD_URL @"" HEAD_URL"integration_dog/app/getExRecordList"

//解析
#define IntegrationJsonParserWithData(data) [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil]

#define TOKEN [[NSUserDefaults standardUserDefaults] objectForKey:@"token"]
#define UID [[[NSUserDefaults standardUserDefaults] objectForKey:@"uid"] intValue]

//应用列表
#define PRODUCT_LIST_URL @"" HEAD_URL"integration_dog/app/productList"
//应用详情
#define PRODUCT_DETAILS_URL @"" HEAD_URL"integration_dog/app/productDetails"
//下载记录
#define DOWNLOAD_RECORD_URL @"" HEAD_URL"integration_dog/app/downloadRecord"
//下载记录日期
#define DOWNLOAD_DATE_LIST_URL @"" HEAD_URL"integration_dog/app/DownloadDateList"
//新增下载记录
#define ADD_DOWNLOAD_URL @"" HEAD_URL"integration_dog/app/adddownloadRecord"

//个人信息
#define PERSON_MESSAGE_URL @"" HEAD_URL"integration_dog/app/getUser"
//修改个人信息
#define UPDARE_MESSAGE_URL @"" HEAD_URL"integration_dog/app/updateUser"
//修改头像信息
#define UPDARE_LOGO_URL @"" HEAD_URL"integration_dog/app/updateUserLogo"
//排行榜
#define GET_RANKING_URL @"" HEAD_URL"integration_dog/app/getRanking"
//退出
#define LOGIN_OUT_URL @"" HEAD_URL"integration_dog/app/logout"



#endif /* Macro_h */
